setlocal
set logfile=%StartupLogs%\startIIS.log

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy /enabled:"True" /commit:apphost >> %logfile% 2>&1
%windir%\system32\inetsrv\appcmd.exe set module "UrlAuthorization" /preCondition:"" >> %logfile% 2>&1
%windir%\system32\net start "World Wide Web Publishing Service" >> %logfile% 2>&1

EXIT /B 0